/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.ipo.mm.web.listeners;

import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import org.ipo.mm.web.util.ConstantManager;

/**
 *
 * @author makcro
 */
public class ApplicationDeploymentListener implements ServletContextListener{



    public void contextInitialized(ServletContextEvent sce) {
        ServletContext context = sce.getServletContext();

        context.setAttribute(ConstantManager.APPCONTEXT_USER_TYPE_ADMIN_PA, org.ipo.mm.web.util.security.SecurityManager.USER_TYPE_ADMIN);
        context.setAttribute(ConstantManager.APPCONTEXT_USER_TYPE_GUEST_PA, org.ipo.mm.web.util.security.SecurityManager.USER_TYPE_GUEST);
        context.setAttribute(ConstantManager.APPCONTEXT_USER_TYPE_NORMAL_PA, org.ipo.mm.web.util.security.SecurityManager.USER_TYPE_NORMAL);
        

    }

    public void contextDestroyed(ServletContextEvent sce) {

    }

}
